package com.cskaoyan.service;

import com.cskaoyan.bean.Admin;
import com.cskaoyan.bean.Role;
import com.cskaoyan.bo.*;
import com.cskaoyan.bean.Storage;
import com.cskaoyan.vo.*;

import java.util.List;
import java.util.Map;

public interface SystemManagementService {
    List<RoleVO> selectRole();

    AdminVO query(AdminBO adminBO);

    Admin addAdmin(Admin admin);

    void deleteAdmin(Admin admin);

    void updateAdmin(Admin admin);

    LogVO queryLog(LogBO logBO);

    RoleGetVO getRole(RoleBO roleBO);

    RoleCreateVO createRole(Map roleMap);

    void updateRole(Role role, String op);

    StorageVOGet getStorageList(StorageBO storageBO);

    void updateStorage(Storage storage, String op);

    PermissionsVO getPermissions(int roleId);

    int updatePermisssions(PermissionsBO permissionsBO);
}
